Skip to content

Focus form control elements during fill_in#305

Open
seanpdoyle wants to merge 1 commit intorubycdp:mainfrom
seanpdoyle:issue-157
Open

Focus form control elements during fill_in#305
seanpdoyle wants to merge 1 commit intorubycdp:mainfrom
seanpdoyle:issue-157

Conversation

@seanpdoyle
Copy link
Contributor

@seanpdoyle seanpdoyle commented Dec 22, 2025

Closes #157
Related to #280

Change the lib/capybara/cuprite/javascripts/index.js to invoke HTMLElement.focus directly, rather than triggering a synthetic "focus" event.

Closes rubycdp#157
Related to rubycdp#280

Change the `lib/capybara/cuprite/javascripts/index.js` to invoke
[HTMLElement.focus][] directly, rather than triggering a synthetic
`"focus"` event.

[HTMLElement.focus]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Element is not focused with #fill_in?

1 participant